package com.zr.inquiry.spare.model.pojo;

import com.zr.share.enums.InquiryCurrencyEnum;

public class InquirySpare {

  private Integer id;
  private String spareCoding;
  private String spareName;
  private String measurementUnit;
  private Integer moq;
  private Integer currencyCode;
  private Integer inquiryQty;
  private Integer deliveryCycle;
  private Integer inquiryId;
  private String currencyCodeName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSpareCoding() {
        return spareCoding;
    }

    public void setSpareCoding(String spareCoding) {
        this.spareCoding = spareCoding;
    }

    public String getSpareName() {
        return spareName;
    }

    public void setSpareName(String spareName) {
        this.spareName = spareName;
    }

    public String getMeasurementUnit() {
        return measurementUnit;
    }

    public void setMeasurementUnit(String measurementUnit) {
        this.measurementUnit = measurementUnit;
    }

    public Integer getMoq() {
        return moq;
    }

    public void setMoq(Integer moq) {
        this.moq = moq;
    }

    public Integer getCurrencyCode() {
        return currencyCode;
    }

    public void setCurrencyCode(Integer currencyCode) {
        this.currencyCode = currencyCode;
        setCurrencyCodeName( );
    }

    public Integer getInquiryQty() {
        return inquiryQty;
    }

    public void setInquiryQty(Integer inquiryQty) {
        this.inquiryQty = inquiryQty;
    }

    public Integer getDeliveryCycle() {
        return deliveryCycle;
    }

    public void setDeliveryCycle(Integer deliveryCycle) {
        this.deliveryCycle = deliveryCycle;
    }

    public Integer getInquiryId() {
        return inquiryId;
    }

    public void setInquiryId(Integer inquiryId) {
        this.inquiryId = inquiryId;
    }

    public String getCurrencyCodeName() {
        return currencyCodeName;
    }

    private void setCurrencyCodeName() {
        this.currencyCodeName = InquiryCurrencyEnum.getName(this.currencyCode);
    }
}
